<%@ page language="java" contentType="text/html; charset=US-ASCII"
    pageEncoding="US-ASCII"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
        <link rel="stylesheet" href="style.css" />
        <title>List of all Users</title>
    </head>
    <body>
        <s:if test="%{#session['connecte']==true}" >
            <s:include value="home.jsp"></s:include>
            <s:set name="l" value="lst"/>
            <s:if test="%{#l.size() > 0}">
                <table class="list-eq"><tr><p>
                    <th class="tdlarg-user">Login</th>
                    <!-- <th class="tdlarg">Password</th>  -->
                    <th class="tdlarg-user">Name</th>
                    <th class="tdlarg-user">Email</th>
                </p></tr></table>
                <s:iterator value="l">
                  <s:iterator>
                    <s:form action="gotomodifUser">
                        <s:hidden name="id"/>
                        <s:hidden name="pwd"/>
                        <s:hidden name="name"/>
                        <s:hidden name="email"/>
                        <s:hidden name="droits"/>
                        <s:submit value="Modify"></s:submit>
                    </s:form>
                    <table class="list-eq"><tr><p>
                        <td class="tdlarg-user"><s:property value="id"/></td>
                        <!-- <td class="tdlarg-user"><s:property value="pwd"/></td> -->
                        <td class="tdlarg-user"><s:property value="name"/></td>
                        <td class="tdlarg-user"><s:property value="email"/></td>
                    </p></tr></table>
                  </s:iterator>
                </s:iterator>
            </s:if>
        </s:if>    
    </body>
</html>
